package de.vermaasen.schwanenkicker.entity;

import org.joda.time.DateTime;

public class EventConstraints {
	private int minimumPlayers;
	private int maximumPlayers;
	private DateTime created;
	private DateTime updated;
	private boolean deleted;
	
	public EventConstraints(final int minimumPlayers, final int maximumPlayers) {
		this.minimumPlayers = minimumPlayers;
		this.maximumPlayers = maximumPlayers;
		created = new DateTime();
		updated = new DateTime();
		deleted = false;
	}
	
	public int getMinimumPlayers() {
		return minimumPlayers;
	}
	public void setMinimumPlayers(final int pMinimumPlayers) {
		this.minimumPlayers = pMinimumPlayers;
	}
	public int getMaximumPlayers() {
		return maximumPlayers;
	}
	public void setMaximumPlayers(final int pMaximumPlayers) {
		this.maximumPlayers = pMaximumPlayers;
	}

	public DateTime getCreated() {
		return created;
	}

	public void setCreated(final DateTime pCreated) {
		created = pCreated;
	}

	public DateTime getUpdated() {
		return updated;
	}

	public void setUpdated(final DateTime pUpdated) {
		updated = pUpdated;
	}

	public boolean isDeleted() {
		return deleted;
	}

	public void setDeleted(final boolean pDeleted) {
		deleted = pDeleted;
	}
	
}
